package com.yanqu.road.entity.log.kowloon;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_kowloon_chapter_finish", desc = "九龙城寨-关卡日志", autoSave = true, uploadCk = true)
public class LogKowloonChapterFinish extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "关卡id")
    private int chapterId;

    @FieldTypeAnnotation(desc = "是否通关  0失败 1 通关 2放弃")
    private int isPass;

    @FieldTypeAnnotation(desc = "时间")
    private Date addTime;

    public LogKowloonChapterFinish(long userId, int chapterId, int isPass) {
        this.userId = userId;
        this.chapterId = chapterId;
        this.isPass = isPass;
        this.addTime = new Date();
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
